package com.cskaoyan.mall.model.vo.mall;

import java.util.Date;

//     * {"code":0,"data":
//             * [{"id":2323,
//             * "state":0,
//             * "goodsNum":1,
//             * "amount":200.0,
//             * "goodsDetailId":1238,"
//             * createtime":"2020-08-12 16:28:33","
//             * hasComment":false,
//             * "goods":{"id":478,"img":"http://115.29.141.32:8084/static/image/157123055832115669931721908195203.jpg",
//             * "name":"新品外套",
//             * "goodsDetailId":1238,
//             * "spec":"卡其色",
//             * "unitPrice":200.0}}]}
public class GetOrderByStateVO {
    private Integer id;
    private Integer state;
    private Integer goodsNum;
    private Double amount;
    private Integer goodsDetailId;
    private Date createtime;
    private Boolean hasComment;
    private GetOrderByStateGoodsVO goods;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getGoodsDetailId() {
        return goodsDetailId;
    }

    public void setGoodsDetailId(Integer goodsDetailId) {
        this.goodsDetailId = goodsDetailId;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Boolean getHasComment() {
        return hasComment;
    }

    public void setHasComment(Integer hasComment) {
        if (hasComment == 0) {
            this.hasComment = false;
        }else {
            this.hasComment = true;
        }
    }

    public GetOrderByStateGoodsVO getGoods() {
        return goods;
    }

    public void setGoods(GetOrderByStateGoodsVO goods) {
        this.goods = goods;
    }
}
